package com.hunter2.standard.entity;

import java.util.Date;

public class CvJob {
	private Integer id;

	private Date createTime;

	private Date updateTime;

	private Integer candidateid;

	private Integer processStage;

	private String startTime;

	private String endTime;

	private String company;

	private String department;

	private String title;

	private String report;

	private String salary;

	private String member;

	private String duty;

	private String achieve;

	private String reason;

	private String city;

	private String info;

	private Float score;

	private Integer flag;

	private Integer fileid;

	private String jobInfo;

	private String trade; // 行业

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getCandidateid() {
		return candidateid;
	}

	public void setCandidateid(Integer candidateid) {
		this.candidateid = candidateid;
	}

	public Integer getProcessStage() {
		return processStage;
	}

	public void setProcessStage(Integer processStage) {
		this.processStage = processStage;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime == null ? null : startTime.trim();
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime == null ? null : endTime.trim();
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company == null ? null : company.trim();
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department == null ? null : department.trim();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title == null ? null : title.trim();
	}

	public String getReport() {
		return report;
	}

	public void setReport(String report) {
		this.report = report == null ? null : report.trim();
	}

	public String getSalary() {
		return salary;
	}

	public void setSalary(String salary) {
		this.salary = salary == null ? null : salary.trim();
	}

	public String getMember() {
		return member;
	}

	public void setMember(String member) {
		this.member = member == null ? null : member.trim();
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty == null ? null : duty.trim();
	}

	public String getAchieve() {
		return achieve;
	}

	public void setAchieve(String achieve) {
		this.achieve = achieve == null ? null : achieve.trim();
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason == null ? null : reason.trim();
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city == null ? null : city.trim();
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info == null ? null : info.trim();
	}

	public Float getScore() {
		return score;
	}

	public void setScore(Float score) {
		this.score = score;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getFileid() {
		return fileid;
	}

	public void setFileid(Integer fileid) {
		this.fileid = fileid;
	}

	public String getJobInfo() {
		return jobInfo;
	}

	public void setJobInfo(String jobInfo) {
		this.jobInfo = jobInfo == null ? null : jobInfo.trim();
	}

	public String getTrade() {
		return trade;
	}

	public void setTrade(String trade) {
		this.trade = trade;
	}

	public String write2Line(CvJob job) {

		// 22行  --添加了trade "行业"
		String line = "\\N" + "\t" + "\\N" + "\t" + "\\N" + "\t" + job.getCandidateid() + "\t" + "\\N" + "\t" // 5
				+ job.getStartTime() + "\t" + job.getEndTime() + "\t" + job.getCompany() + "\t" + job.getDepartment()
				+ "\t" + job.getTitle() + "\t" + job.getReport() // 6
				+ "\t" + job.getSalary() + "\t" + job.getMember() + "\t" + job.getDuty() + "\t" + job.getAchieve()
				+ "\t" + job.getReason() + "\t" + job.getCity() + "\t" // 6
				+ job.getInfo() + "\t" + "\\N" + "\t" + job.getJobInfo() + "\t" + "1" + "\t" + "\\N" + "\t"+job.getTrade()+ "\t"; // 5---6

		return line;
	}
	
	@Override
	public String toString() {
		return "CvJob [id=" + id + ", createTime=" + createTime + ", updateTime=" + updateTime + ", candidateid="
				+ candidateid + ", processStage=" + processStage + ", startTime=" + startTime + ", endTime=" + endTime
				+ ", company=" + company + ", department=" + department + ", title=" + title + ", report=" + report
				+ ", salary=" + salary + ", member=" + member + ", duty=" + duty + ", achieve=" + achieve + ", reason="
				+ reason + ", city=" + city + ", info=" + info + ", score=" + score + ", flag=" + flag + ", fileid="
				+ fileid + ", jobInfo=" + jobInfo + "]";
	}

}